﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using RipPoll.Library;

namespace RipPoll.Services.Contracts
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IPollServices
    {
        [OperationContract]        
        string[] GetZipCodesForPollid(int pollId);

        [OperationContract]
        void AddPollCategory(PollCategoryPE pc);

        [OperationContract]
        void AddPoll(PollPE pollPE, UserPE upe);

        [OperationContract]
        List<PollCategoryPE> GetPollcategories();

        [OperationContract]
        List<PollPE> GetUnApprovedPolls();

        [OperationContract]
        void ApprovePoll(int id);

        [OperationContract]
        List<PollPE> GetUserPolls(int userId);
    }
    
}
